home *** CD-ROM | disk | FTP | other *** search
- // Borland C++ Builder
- // Copyright (c) 1995, 1999 by Borland International
- // All rights reserved
-
- // (DO NOT EDIT: machine generated header) 'UPTImageCombo.pas' rev: 4.00
-
- #ifndef UPTImageComboHPP
- #define UPTImageComboHPP
-
- #pragma delphiheader begin
- #pragma option push -w-
- #include <Menus.hpp> // Pascal unit
- #include <StdCtrls.hpp> // Pascal unit
- #include <ImgList.hpp> // Pascal unit
- #include <Dialogs.hpp> // Pascal unit
- #include <Forms.hpp> // Pascal unit
- #include <Controls.hpp> // Pascal unit
- #include <Graphics.hpp> // Pascal unit
- #include <Classes.hpp> // Pascal unit
- #include <SysUtils.hpp> // Pascal unit
- #include <Messages.hpp> // Pascal unit
- #include <Windows.hpp> // Pascal unit
- #include <SysInit.hpp> // Pascal unit
- #include <System.hpp> // Pascal unit
-
- //-- user supplied -----------------------------------------------------------
-
- namespace Uptimagecombo
- {
- //-- type declarations -------------------------------------------------------
- class DELPHICLASS TPTImageComboItem;
- class DELPHICLASS TPTCustomImageCombo;
- class DELPHICLASS TPTCustomCombobox;
- typedef void __fastcall (__closure *TPTDeleteComboItemEvent)(System::TObject* aSender, void * aItem)
- ;
-
- #pragma pack(push, 4)
- class PASCALIMPLEMENTATION TPTCustomCombobox : public Stdctrls::TCustomComboBox
- {
- typedef Stdctrls::TCustomComboBox inherited;
-
- private:
- TPTDeleteComboItemEvent mOnDeleteItemProc;
- Classes::TNotifyEvent mOnCloseUpProc;
- Classes::TNotifyEvent mOnSelEndCancelProc;
- Classes::TNotifyEvent mOnSelEndOkProc;
- void __fastcall SetItemHeight2(int aValue);
- HIDESBASE MESSAGE void __fastcall CNCommand(Messages::TWMCommand &aMsg);
- HIDESBASE MESSAGE void __fastcall WMDeleteItem(Messages::TWMDeleteItem &amsg);
-
- protected:
- virtual void __fastcall DeleteItem(void * aItem);
- DYNAMIC void __fastcall CloseUp(void);
- DYNAMIC void __fastcall SelEndCancel(void);
- DYNAMIC void __fastcall SelEndOk(void);
- __property TPTDeleteComboItemEvent OnDeleteItem = {read=mOnDeleteItemProc, write=mOnDeleteItemProc}
- ;
- __property Classes::TNotifyEvent OnCloseUp = {read=mOnCloseUpProc, write=mOnCloseUpProc};
- __property Classes::TNotifyEvent OnSelEndCancel = {read=mOnSelEndCancelProc, write=mOnSelEndCancelProc
- };
- __property Classes::TNotifyEvent OnSelEndOk = {read=mOnSelEndOkProc, write=mOnSelEndOkProc};
- __property ItemHeight = {write=SetItemHeight2};
- public:
- #pragma option push -w-inl
- /* TCustomComboBox.Create */ inline __fastcall virtual TPTCustomCombobox(Classes::TComponent* AOwner
- ) : Stdctrls::TCustomComboBox(AOwner) { }
- #pragma option pop
- #pragma option push -w-inl
- /* TCustomComboBox.Destroy */ inline __fastcall virtual ~TPTCustomCombobox(void) { }
- #pragma option pop
-
- public:
- #pragma option push -w-inl
- /* TWinControl.CreateParented */ inline __fastcall TPTCustomCombobox(HWND ParentWindow) : Stdctrls::TCustomComboBox(
- ParentWindow) { }
- #pragma option pop
-
- };
-
- #pragma pack(pop)
-
- typedef void __fastcall (__closure *TPTDeleteImageComboItemEvent)(System::TObject* aSender, TPTImageComboItem*
- aItem);
-
- typedef void __fastcall (__closure *TPTImageComboGetItemDataEvent)(System::TObject* aSender, TPTImageComboItem*
- aItem);
-
- #pragma pack(push, 4)
- class PASCALIMPLEMENTATION TPTCustomImageCombo : public TPTCustomCombobox
- {
- typedef TPTCustomCombobox inherited;
-
- private:
- bool mAutoSizeHeight;
- Controls::TImageList* mImageList;
- int mIndentPixels;
- TPTDeleteImageComboItemEvent mOnDeleteImageComboItemProc;
- TPTImageComboGetItemDataEvent mOnGetItemDataProc;
- bool mfInWMSetFont;
- TPTImageComboItem* __fastcall GetImageComboItem(int index);
- HIDESBASE MESSAGE void __fastcall CNDrawItem(Messages::TWMDrawItem &aMsg);
- HIDESBASE MESSAGE void __fastcall WMEraseBkgnd(Messages::TWMEraseBkgnd &aMsg);
- MESSAGE void __fastcall WMSetFont(Messages::TWMSetFont &aMsg);
-
- protected:
- void __fastcall DoAutoSize(HFONT hf);
- HIDESBASEDYNAMIC void __fastcall AutoSize(HFONT hf);
- void __fastcall SetIndentPixels(int aValue);
- void __fastcall SetImageList(const Controls::TImageList* aValue);
- virtual void __fastcall CreateParams(Controls::TCreateParams &p);
- virtual void __fastcall CreateWnd(void);
- virtual void __fastcall DestroyWnd(void);
- virtual void __fastcall DrawItem(int aIndex, const Windows::TRect &aRect, Stdctrls::TOwnerDrawState
- aState);
- virtual void __fastcall Notification(Classes::TComponent* aComponent, Classes::TOperation operation
- );
- virtual void __fastcall DeleteItem(void * aItem);
- virtual void __fastcall GetItemData(TPTImageComboItem* AItem);
- __property Text = {stored=false};
- __property bool AutoSizeHeight = {read=mAutoSizeHeight, write=mAutoSizeHeight, default=1};
- __property int IndentPixels = {read=mIndentPixels, write=SetIndentPixels, default=12};
- __property Controls::TImageList* ImageList = {read=mImageList, write=SetImageList};
- __property TPTDeleteImageComboItemEvent OnDeleteItem = {read=mOnDeleteImageComboItemProc, write=mOnDeleteImageComboItemProc
- };
- __property TPTImageComboGetItemDataEvent OnGetItemData = {read=mOnGetItemDataProc, write=mOnGetItemDataProc
- };
-
- public:
- __fastcall virtual TPTCustomImageCombo(Classes::TComponent* aOwner);
- __fastcall virtual ~TPTCustomImageCombo(void);
- virtual TPTImageComboItem* __fastcall AddItem(AnsiString aCaption, int aImageIndex, int aIndent);
- __property TPTImageComboItem* ImageComboItem[int index] = {read=GetImageComboItem};
- public:
- #pragma option push -w-inl
- /* TWinControl.CreateParented */ inline __fastcall TPTCustomImageCombo(HWND ParentWindow) : TPTCustomCombobox(
- ParentWindow) { }
- #pragma option pop
-
- };
-
- #pragma pack(pop)
-
- #pragma pack(push, 4)
- class PASCALIMPLEMENTATION TPTImageComboItem : public System::TObject
- {
- typedef System::TObject inherited;
-
- protected:
- TPTCustomImageCombo* mOwner;
- int mItemIndex;
- int mIndex;
- int mIndent;
- int mImageIndex;
- int mOverlayIndex;
- AnsiString mCaption;
- int mTag;
- void *mData;
- void __fastcall SetIndent(int aValue);
- void __fastcall SetImageIndex(int aValue);
- void __fastcall SetCaption(const AnsiString aValue);
- void __fastcall SetOverlayIndex(int aValue);
-
- public:
- __fastcall TPTImageComboItem(TPTCustomImageCombo* aOwner);
- __fastcall virtual ~TPTImageComboItem(void);
- __property int Index = {read=mIndex, nodefault};
- __property int Indent = {read=mIndent, write=SetIndent, nodefault};
- __property int ImageIndex = {read=mImageIndex, write=SetImageIndex, nodefault};
- __property int OverlayIndex = {read=mOverlayIndex, write=SetOverlayIndex, nodefault};
- __property AnsiString Caption = {read=mCaption, write=SetCaption};
- __property void * Data = {read=mData, write=mData};
- __property int Tag = {read=mTag, write=mTag, nodefault};
- };
-
- #pragma pack(pop)
-
- class DELPHICLASS TPTCombobox;
- #pragma pack(push, 4)
- class PASCALIMPLEMENTATION TPTCombobox : public TPTCustomCombobox
- {
- typedef TPTCustomCombobox inherited;
-
- __published:
- __property Style ;
- __property Color ;
- __property Ctl3D ;
- __property DragMode ;
- __property DragCursor ;
- __property DropDownCount ;
- __property Enabled ;
- __property Font ;
- __property ItemHeight ;
- __property Items ;
- __property MaxLength ;
- __property ParentColor ;
- __property ParentCtl3D ;
- __property ParentFont ;
- __property ParentShowHint ;
- __property PopupMenu ;
- __property ShowHint ;
- __property Sorted ;
- __property TabOrder ;
- __property TabStop ;
- __property Text ;
- __property Visible ;
- __property OnChange ;
- __property OnClick ;
- __property OnDblClick ;
- __property OnDragDrop ;
- __property OnDragOver ;
- __property OnDrawItem ;
- __property OnDropDown ;
- __property OnEndDrag ;
- __property OnEnter ;
- __property OnExit ;
- __property OnKeyDown ;
- __property OnKeyPress ;
- __property OnKeyUp ;
- __property OnMeasureItem ;
- __property OnStartDrag ;
- __property OnDeleteItem ;
- __property OnCloseUp ;
- __property OnSelEndCancel ;
- __property OnSelEndOk ;
- __property Anchors ;
- __property Constraints ;
- __property DragKind ;
- __property ImeMode ;
- __property ImeName ;
- __property BiDiMode ;
- __property ParentBiDiMode ;
- __property OnEndDock ;
- __property OnStartDock ;
- public:
- #pragma option push -w-inl
- /* TCustomComboBox.Create */ inline __fastcall virtual TPTCombobox(Classes::TComponent* AOwner) : TPTCustomCombobox(
- AOwner) { }
- #pragma option pop
- #pragma option push -w-inl
- /* TCustomComboBox.Destroy */ inline __fastcall virtual ~TPTCombobox(void) { }
- #pragma option pop
-
- public:
- #pragma option push -w-inl
- /* TWinControl.CreateParented */ inline __fastcall TPTCombobox(HWND ParentWindow) : TPTCustomCombobox(
- ParentWindow) { }
- #pragma option pop
-
- };
-
- #pragma pack(pop)
-
- class DELPHICLASS TPTImageCombo;
- #pragma pack(push, 4)
- class PASCALIMPLEMENTATION TPTImageCombo : public TPTCustomImageCombo
- {
- typedef TPTCustomImageCombo inherited;
-
- __published:
- __property AutoSizeHeight ;
- __property IndentPixels ;
- __property ImageList ;
- __property OnDeleteItem ;
- __property OnCloseUp ;
- __property OnSelEndCancel ;
- __property OnSelEndOk ;
- __property OnGetItemData ;
- __property Color ;
- __property Ctl3D ;
- __property DragMode ;
- __property DragCursor ;
- __property DropDownCount ;
- __property Enabled ;
- __property Font ;
- __property ItemHeight ;
- __property MaxLength ;
- __property ParentColor ;
- __property ParentCtl3D ;
- __property ParentFont ;
- __property ParentShowHint ;
- __property PopupMenu ;
- __property ShowHint ;
- __property Sorted ;
- __property TabOrder ;
- __property TabStop ;
- __property Visible ;
- __property OnChange ;
- __property OnClick ;
- __property OnDblClick ;
- __property OnDragDrop ;
- __property OnDragOver ;
- __property OnDrawItem ;
- __property OnDropDown ;
- __property OnEndDrag ;
- __property OnEnter ;
- __property OnExit ;
- __property OnKeyDown ;
- __property OnKeyPress ;
- __property OnKeyUp ;
- __property OnMeasureItem ;
- __property OnStartDrag ;
- __property Anchors ;
- __property Constraints ;
- __property DragKind ;
- __property ImeMode ;
- __property ImeName ;
- __property BiDiMode ;
- __property ParentBiDiMode ;
- __property OnEndDock ;
- __property OnStartDock ;
- public:
- #pragma option push -w-inl
- /* TPTCustomImageCombo.Create */ inline __fastcall virtual TPTImageCombo(Classes::TComponent* aOwner
- ) : TPTCustomImageCombo(aOwner) { }
- #pragma option pop
- #pragma option push -w-inl
- /* TPTCustomImageCombo.Destroy */ inline __fastcall virtual ~TPTImageCombo(void) { }
- #pragma option pop
-
- public:
- #pragma option push -w-inl
- /* TWinControl.CreateParented */ inline __fastcall TPTImageCombo(HWND ParentWindow) : TPTCustomImageCombo(
- ParentWindow) { }
- #pragma option pop
-
- };
-
- #pragma pack(pop)
-
- //-- var, const, procedure ---------------------------------------------------
-
- } /* namespace Uptimagecombo */
- #if !defined(NO_IMPLICIT_NAMESPACE_USE)
- using namespace Uptimagecombo;
- #endif
- #pragma option pop // -w-
-
- #pragma delphiheader end.
- //-- end unit ----------------------------------------------------------------
- #endif // UPTImageCombo
-